package com.sunzhe.plasma;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.WebApplicationInitializer;


@SpringBootApplication
@EnableCaching
@ComponentScan(basePackages= {"com.sunzhe.plasma","com.sunzhe.cms","com.ibeetl.admin","com.ibeetl.cms","com.ibeetl.member"})
public class MainApplication  extends SpringBootServletInitializer implements WebApplicationInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(MainApplication.class);
    }
    public static void main(String[] args) {
    	SpringApplication.run(MainApplication.class, args);
    }
}	